package mypoint;

public class TestMyPoint {
	public static void main(String[] args) {
		MyPoint myPoint = new MyPoint(2, 3);
		MyPoint myPoint2 = new MyPoint(5, 7);

		System.out.println(myPoint);
		System.out.println(myPoint.distance());
		System.out.println(myPoint.distance(myPoint2));
		System.out.println(myPoint.distance(5, 7));

		MyPoint[] myPoints = new MyPoint[10];
		for (int i = 0; i < 10; i++) {
			MyPoint myPoint3 = new MyPoint(i + 1, i + 1);
			myPoints[i] = myPoint3;
			System.out.println(myPoints[i]);
		}

	}
}
